package com.shangqing.document_management.constant;

/**
 * 错误码和错误信息的枚举类
 */
public enum EmBusinessError {
    UNKONW_ERROR(500,"内部错误"),
    SUCCESS(200,"成功"),
    USERNAME_ERROR(401,"用户名错误"),
    PASSWROD_ERROR(402,"密码错误"),
    USERNAME_NOTFOUND(403,"用户名不存在");
    private Integer code;
    private String msg;
    EmBusinessError(Integer code,String msg){
        this.code=code;
        this.msg=msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
